package name.jiaosha.air.system.service;

import name.jiaosha.air.system.domain.Brand;
import name.jiaosha.air.system.domain.Category;
import name.jiaosha.air.system.domain.Power;
import name.jiaosha.air.system.domain.Seer;
import name.jiaosha.air.system.domain.SysFunction;
import name.jiaosha.air.system.domain.Unit;

import com.ali8ba.common.PageInfo;

public interface ISystemService {

	/**
	 * 增加单位
	 * 
	 * @param unit
	 */
	public void createUnit(Unit unit);

	public void updateUnit(Unit unit);

	public Unit getUnitById(Integer id);

	public PageInfo<Unit> getUnitListByComId(int index,
			int pageSize);

	/**
	 * 增加品牌
	 * 
	 * @param brand
	 */
	public void createBrand(Brand brand);

	public void updateBrand(Brand brand);

	public Brand getBrandById(Integer id);

	public PageInfo<Brand> getBrandListByComId(int index,
			int pageSize);
	
	/**
	 * 增加功率
	 * @param power
	 */
	public void createPower(Power power);

	public void updatePower(Power power);

	public Power getPowerById(Integer id);

	public PageInfo<Power> getPowerListByComId(int index,
			int pageSize);
	/**
	 * 增加能效
	 * @param seer
	 */
	public void createSeer(Seer seer);

	public void updateSeer(Seer seer);

	public Seer getSeerById(Integer id);

	public PageInfo<Seer> getSeerListByComId(int index,
			int pageSize);
	/**
	 * 能加功能
	 * @param sysFunction
	 */
	public void createFunction(SysFunction sysFunction);

	public void updateFunction(SysFunction sysFunction);

	public SysFunction getFunctionById(Integer id);

	public PageInfo<SysFunction> getFunctionListByComId(int index,
			int pageSize);
	
	/**
	 * 增加类别
	 * @param category
	 */
	public void createCategory(Category category);

	public void updateCategory(Category category);

	public Category getCategoryById(Integer id);

	public PageInfo<Category> getCategoryList(int index,
			int pageSize);

}
